package edu.gdkm.demo5;

public class Person {
    private String id;
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Person() {
    }

    public Person(String id, String name) {
        this.id = id;
        this.name = name;
    }
    public void say(){
        System.out.println("id:"+id+",姓名："+name);
    }
    public void run(){
        System.out.println("我是父类的run方法");
    }
}
